package com.brick.service;

import com.brick.entity.ShoppingCart;
import com.brick.mapper.ShoppingCarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShoppingCarService {
    @Autowired
    ShoppingCarMapper shoppingCarMapper;

    public List<ShoppingCart> selectAll(ShoppingCart shoppingCart){
        return shoppingCarMapper.selectAll(shoppingCart);
    }

    public int insert(ShoppingCart shoppingCart){
        return shoppingCarMapper.insert(shoppingCart);
    }

    public int update(ShoppingCart shoppingCart){
        return shoppingCarMapper.update(shoppingCart);
    }
}
